/**
 * Created by Administrator on 14-2-28.
 */
var gui = require('nw.gui');
var tipwin =  gui.Window.get();
var socket = global.hitdata.socket;
var msg =  global.hitdata.message;

tipwin.on('loaded',function(){

    $("#message").append("</p>"+msg.content+"</p>");
    $("#message").bind("click",function(event){
        closeme();
    });
    setTimeout("closeme()",10000);

});
socket.on('logoutEvent',function(){
    tipwin.close(true);
});
function closeme(){
    tipwin.hide();
}